Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 3 - Image Compression Manager / Image Compression Manager Reference
Image Compression Manager Functions / Aligning Windows


AlignWindow

The AlignWindow function moves a specified window to the nearest optimal alignment position.

pascal void AlignWindow (WindowPtr wp, Boolean front, 
                         const Rect *alignmentRect,
                         AlignmentProcRecordPtr alignmentProc);
wp
Points to the window to be aligned.
front
Specifies the frontmost window. If the front parameter is true and the window specified in the wp parameter isn't the active window, AlignWindow makes it the active window by calling the Window Manager's SelectWindow routine.
alignmentRect
Contains a pointer to a rectangle in window coordinates that allows you to align the window to a rectangle within the window. Set this
parameter to nil to align using the bounds of the window.
alignmentProc
Points to a function that allows you to provide your own alignment behavior. Set this parameter to nil to use the standard behavior. Your alignment function must be in the following form:
pascal void MyAlignmentProc(Rect *rp, long refcon);

See "Alignment Functions" on page 3-149 for details.
SEE ALSO
The AlignWindow function is similar to the Window Manager's MoveWindow routine. See Inside Macintosh: Macintosh ToolBox Essentials Essentials for details.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996